﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Data.SqlClient;
using System.Linq;
using System.Text;
using OgilvyOne.Model;

namespace OgilvyOne.SqlServerDAL
{
    public class ExampleDal : OgilvyOne.IDAL.IExample
    {
        private const string Tablename = "Test_table";
        private const string SpByPage = "SP_GetRecordByPage";
        public DataTable GetList(int pagesize, int pageindex, string strwhere, string strorder, out int totalPage, out int totalRow)
        {
           return CommonFun.GetList(Tablename, "*", strorder, strwhere, pagesize, pageindex, out totalPage,
                                             out totalRow);
             
           
        }
    }
}
